package com.robot.dao;


import com.robot.model.TestPlanDetailDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * Created with IntelliJ IDEA.
 * User: li
 * Date: 2019/4/27
 * Time: 22:37
 * PROJECT：compass
 * PACKAGE: com.compass
 *
 * @author:55324936@qq.com To change this template use File | Settings | File Templates.
 */
@Mapper
public interface TestPlanDetailMapper {

    /**
     * 创建测试计划明细
     * @param testPlanDetailDo
     * @return
     */
    public void addPlanDetail(TestPlanDetailDo testPlanDetailDo);

    /**
     * 修改测试计划明细
     * @param testPlanDetailDo
     * @return
     */
    public void updateTestPlanDetail(TestPlanDetailDo testPlanDetailDo);

    /**
     * 删除测试计划
     *
     * @param id
     * @return RequestResult
     */
    public void deleteTestPlanDetail(Integer id);

    /**
     * 根据测试计划id获取明细
     * @param testPlanDetailDo
     * @return List<TestPlanDetail>
     */
    public List<TestPlanDetailDo> getTestPlanDetailByPlanId(TestPlanDetailDo testPlanDetailDo);

    /**
     * 根据测试计划id获取明细
     * @param id
     * @return List<TestPlanDetail>
     */
    public TestPlanDetailDo getTestPlanDetailById(Integer id);
}
